import request from '@/utils/request'

// 查询工单操作日志列表
export function listWorkLogs(query) {
  return request({
    url: '/ruoyi/workLogs/list',
    method: 'get',
    params: query
  })
}

// 查询工单操作日志详细
export function getWorkLogs(logId) {
  return request({
    url: '/ruoyi/workLogs/' + logId,
    method: 'get'
  })
}

// 新增工单操作日志
export function addWorkLogs(data) {
  return request({
    url: '/ruoyi/workLogs',
    method: 'post',
    data: data
  })
}

// 修改工单操作日志
export function updateWorkLogs(data) {
  return request({
    url: '/ruoyi/workLogs',
    method: 'put',
    data: data
  })
}

// 删除工单操作日志
export function delWorkLogs(logId) {
  return request({
    url: '/ruoyi/workLogs/' + logId,
    method: 'delete'
  })
}
